home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Lengths
/
list-n-fibo
< prev
next >
Wrap
Text File
|
1998-10-22
|
992b
|
39 lines
list-n-fibo length &key (scr 0) (num 1)
creates a list of fibonacci-numbers which can be said to
be a quantized version of the golden section.
the further you go in the series the closer to the golden
section you get.
with scr = scroll (must be a positive integer)
you can scroll to a different start-position in the series.
and with num you can select a different number than the
default 1.
the series should really start with zero which is submitted.
(list-n-fibo 13)
->(1 1 2 3 5 8 13 21 34 55 89 144 233)
(list-n-fibo 8 :scr 8 :num 1)
->(34 55 89 144 233 377 610 987)
(list-n-fibo 8 :num 1.5)
->(1.5 1.5 3.0 4.5 7.5 12.0 19.5 31.5)
(mapcar #'integer-to-symbol
(flatten (mapcar #'list
(list-n-fibo 8)
(reverse (list-n-fibo 5)))))
->(b f b d c c d b f b)
(mapcar #'compress
(mapcar #'list (list-n-fibo 8)
(make-list 8 :initial-element '/12)))
->(1/12 1/12 2/12 3/12 5/12 8/12 13/12 21/12)